package cn.schoolwow.flow.monitor.test.module.interceptor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ProjectExceptionHandler {
    private Logger logger = LoggerFactory.getLogger(ProjectExceptionHandler.class);

    @ExceptionHandler(Exception.class)
    public void exceptionHandler(Exception e){
        logger.error(e.getMessage(), e);
    }
}
